class Commodity_insurance {
    /**
     * 根据商品保险Id查匈更多信息
     * @param insuranceId 商品条款Id
     * @return {Promise<JSON>} JSON对象
     */
    getInsuranceWithRelatedTablesById(insuranceId){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/purchase/merchandise/insurance",
                method: "GET",
                data: {
                    insuranceId: insuranceId
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}